<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="static/js/font_1693746_l88lqiaavxa.js"></script>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/font_1693746_l88lqiaavxa.css">
  <title>开发助手高效版-网页版极致cms开发助手</title>
</head>
<body>
<div class="tool-container clearfix">
  <div class="menu">
    <span></span>
  </div>
  <div class="tool-nav" style="display: none;">
    <a href="index.html">导航菜单</a>
    <a href="site.html">站点信息</a>
    <a href="index-page.html">指定栏目</a>
    <a href="index-list.html">指定文章列表</a>
    <a href="index-product.html">指定商品列表</a>
    <a href="sort.html">当前栏目</a>
    <a href="banner.html">轮播图</a>
    <a href="article-list.html">文章列表</a>
    <a href="article-details.html">文章详情</a>
    <a href="productlist.html">产品列表</a>
    <a href="product.html">产品详情</a>
    <a href="pics.html">多图遍历</a>
    <a href="fenye.html">分页</a>
    <a href="message.html">表单留言</a>
    <a href="search.html">搜索列表</a>
    <a href="if.html">IF判断</a>
    <a href="en.html">多语言建站</a> 
    <a href="select.html">多条件筛选</a>
    <a href="label.html">全局标签</a>
    <a href="user.html">会员登录注册</a>
    <a href="javascript:;">无刷新点赞</a>
    <a href="link.html">友情链接</a>
    <a href="other.html">其他</a>
  </div>
  <div class="tool-left">
    <div class="english">
      <a href="en.html"><svg class="icon" aria-hidden="true"><use xlink:href="#iconchina"></use></svg>CN <svg class="icon" aria-hidden="true"><use xlink:href="#iconmeiguo"></use></svg>EN</a>
    </div>
    <div class="logo-search container">
      <a href="site.html" class="logo">极致CMS开发助手</a>
      <a href="search.html" class="search">
        <span>请输入关键词</span>
        <span>搜索</span>
      </a>
      <a href="user.html" class="login">
        <span>登录/注册</span>
      </a>
    </div>
    <div class="header">
      <ul class="navbar clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="productlist.html">产品列表</a></li>
        <li><a href="product.html">产品详情</a></li>
        <li><a href="article-list.html">文章列表</a></li>
        <li><a href="article-details.html">文章详情</a></li>
        <li><a href="">单页</a></li>
        <li><a href="label.html">全局标签</a></li>
        <li><a href="other.html">其他</a></li>
      </ul>
    </div>
    <div class="banner">
      <a href="#">
        <span>Img - Sort</span>
      </a>
    </div>

    <div class="product-box container clearfix">
      <div class="product-sort fl">
        <a href="vnav.html">
          <h4>当前栏目</h4>
          <ul>
            <li>下级分类1</li>
            <li>下级分类2</li>
            <li>下级分类3</li>
            <li>下级分类4</li>
            <li>下级分类5</li>
          </ul>
        </a>
        <a href="vnav.html">
          <h4>产品中心(顶级)</h4>
          <ul>
            <li>产品分类1</li>
            <li>产品分类2</li>
            <li>产品分类3</li>
            <li>产品分类4</li>
            <li>产品分类5</li>
          </ul>
        </a>
      </div>
      <div class="product-content fr">
        <div class="position clearfix"><a href="sort.html" class="fl">栏目名称</a><a href="#" class="fr">当前位置：首页 > 产品中心</a></div>
        <div class="product-list">

        <div class="row clearfix">
          <div class="product-cont">
            <a href="">
              <h2>关于我们</h2>
              <p>欢迎您使用极致CMS商业版, 希望我们的建站系统能够让您在使用的时候感到快乐~郑重承诺极致CMS商业版程序无后门，无限制，全开源，不收授权费，长期运营至死方休。</p>
              <p>这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用，这篇文章真的很实用。</p>
            </a>
          </div>
        </div>

          <div class="news-recommend">
            <a href="#">
              <h3>产品推荐</h3>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
            </a>
          </div>
        </div>
      </div>
    </div>
    
    <a href="site.html" class="index-footer">
      <p><span>&copy;2020 极致CMS版权所有</span></p>
      <p><span>蜀ICP备2021016482号</span></p>
    </a>
  </div>
  
  <div class="tool-right">
    <div class="tool-code">
      <h2>极致CMS开发助手</h2>
      <div class="tool-code-box" id="tool-code1">

        <div class="code-box code-create">
          <h3>单页标题/关键词/描述</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="3">
<title>{$type['classname']}-{$webconf['web_name']}</title>
<meta name="keywords" content="{$type['keywords']}" />
<meta name="description" content="{$type['description']}" /></textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="code-box code-para">
          <h3>常用标签 <span>(点击即复制)</span></h3>
          <button onclick="copyText()"><span class="copy">{$positions}</span><span>当前位置</span></button>
          <button onclick="copyText()"><span class="copy">{$type['classname']}</span><span>当前栏目名</span></button>
          <button onclick="copyText()"><span class="copy">{$type['url']}</span><span>当前栏目url</span></button>
          <button onclick="copyText()"><span class="copy">{$type['body']}</span><span>当前栏目内容</span></button>
        </div>

        <div class="code-box code-label">
          <h3>当前栏目 <span>(点击即复制)</span></h3>
          <button onclick="copyText()"><span class="copy">{$positions}</span><span>当前位置</span></button>
          <button onclick="copyText()"><span class="copy">{$type['id']}</span><span>当前栏目ID</span></button>
          <button onclick="copyText()"><span class="copy">{$type['classname']}</span><span>当前栏目名</span></button>
          <button onclick="copyText()"><span class="copy">{$type['seo_classname']}</span><span>当前栏目SEO名</span></button>
          <button onclick="copyText()"><span class="copy">{$type['molds']}</span><span>当前模块标识</span></button>
          <button onclick="copyText()"><span class="copy">{$type['litpic']}</span><span>当前栏目缩略图</span></button>
          <button onclick="copyText()"><span class="copy">{$type['url']}</span><span>当前栏目url</span></button>
          <button onclick="copyText()"><span class="copy">{$type['keywords']}</span><span>当前栏目关键词</span></button>
          <button onclick="copyText()"><span class="copy">{$type['description']}</span><span>当前栏目描述</span></button>
          <button onclick="copyText()"><span class="copy">{$type['body']}</span><span>当前栏目内容</span></button>
          <button onclick="copyText()"><span class="copy">{$type['lists_num']}</span><span>当前栏目列表输出条数</span></button>
          <button onclick="copyText()"><span class="copy">{$type['comment_num']}</span><span>当前栏目评论数</span></button>
          <button onclick="copyText()"><span class="copy">{$type['pid']}</span><span>当前栏目上级栏目id</span></button>
          <button onclick="copyText()"><span class="copy">{$classtypedata[$type['pid']]['classname']}</span><span>当前栏目上级栏目名</span></button>
          <button onclick="copyText()"><span class="copy">{$classtypedata[$type['pid']]['url']}</span><span>当前栏目上级栏目url</span></button>
          <button onclick="copyText()"><span class="copy">class="{if($type['id']==$v['id'])}active{/if}"</span><span>当前栏目高亮</span></button>
          <input type="text" id="input" value="12345" style="opacity: 0;">
                    <div class="code-tips">
            <span>Tips</span>循环,列表开始,中间调用,列表结束
          </div>
        </div>

        <div class="code-box code-create">
          <h3>获取当前栏目的顶级栏目</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="5">
{foreach $classtypedata as $v}
{if($v['pid']==0 && isset($type) && in_array($type['id'],$v['children']['ids']) )}
    <li> <a href="{$v['url']}">{$v['classname']}</a> </li>
{/if}
{/foreach}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="code-box code-create">
          <h3>有下级输出下级，没下级输出同级，同级是顶级不输出</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="6">
{if($classtypedata[$type['id']]['haschild'])}
{foreach $classtypedata[$type['id']]['children']['list'] as $v}
    <li class="{if($type['id']==$v['id'])}active{/if}"  > <a  href="{$v['url']}">{$v['classname']}</a></li>
{if($v['isshow']==1)}
{/if}
{/foreach}
{else}
{foreach $classtypedata as $v}
{if($v['pid']==$type['pid'] && $v['isshow']==1 && $v['pid']!=0)}
    <li class="{if($type['id']==$v['id'])}active{/if}"  > <a  href="{$v['url']}">{$v['classname']}</a></li>
{/if}
{/foreach}
{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>

        <div class="code-box code-create">
          <h3>输出指定栏目的下级栏目-假设id为2</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="5">
{if($classtypedata[2]['haschild'])}
{foreach $classtypedata[2]['children']['lists'] as $vv}
    <a  href="{$vv['url']}">{$vv['classname']}</a>
{/foreach}
{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>

    </div>
  </div>
</div>
</div>
<script src="static/js/jquery-1.10.2.js"></script>
<script src="static/js/base.js"></script>
</body>
</html>